import java.util.Scanner;
public class Test {
    public static void main(String[] args) {
        for(int i = 1; i <= 10; i++){
            System.out.print(i);
            System.out.print(" ");
        }
    }
    /*int i = 1;
    int sum = 0;
    while (i <= 100){
        sum += i;
        i++;
    }*/
    public static void main3(String[] args) {
        int i = 1;
        int sum = 0;
        while (i <= 100){
            sum += i;
            i++;
        }

        System.out.println(sum);
    }










    public static void main2(String[] args) {
        //复习switch语句
        int n = 4;

        switch(n){//判断n这个表达式来匹配case的值
            case 1:
                System.out.println("星期一");
                break;
            case 2:
                System.out.println("星期2");
                break;
            default:
                System.out.println("输入还没完善");
                break;

        }
    }
    public static void main1(String[] args) {
        //判断闰年
        int n = 2000;
        //能被4整除且不能被100整除
        //能被400整除

        if (n % 400 == 0){
            System.out.println("是闰年");
        }else if (n % 100 == 0){
            System.out.println("不是闰年");
        }else if (n % 4 == 0){
            System.out.println("是闰年");
        }else{
            System.out.println("不是闰年");
        }

    }






}
